package com.ruoyi.common.datapermission.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 数据权限配置
 */
@Data
@ConfigurationProperties(prefix = "ruoyi.dp")
public class AuthProperties {
    private List<AuthConfig> configs = new ArrayList<>();

    @Data
    public static class AuthConfig {
        private boolean enable;//是否启用数据权限配置
        private String rule;//数据权限类
        private Map<String, String> tableConfigs;//数据权限配置
    }
}
